package com.wnxy.sdd.lombok;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Person {
    private int id;
    private String name;

    public static void main(String[] args) {
        //Person person = Person.builder().id(1).name("").build();
        Person person = new Person();
        person.setId(0);
        person.setName("");

        Person p = Person.builder()
                .id(0)
                .name("jack")
                .build();
        System.out.println("p = " + p);
    }
}
